﻿using Albatross.WPF.Common;
using Albatross.WPF.Common.ViewModels;
using Albatross.WPF.Common.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Albatross.SampleClient.ViewModels {
	public class ShellMenuViewModel : ViewModel{
		public RelayCommand<IViewService> ShowCompositeViewCommand { get { return new RelayCommand<IViewService>(ShowCompositeView); } }
		void ShowCompositeView(IViewService svcs) {
			svcs.ShowWorkspace<CompositeMainViewModel>();
		}

		public RelayCommand<IViewService> ShowContactsCommand { get { return new RelayCommand<IViewService>(ShowContacts); } }
		void ShowContacts(IViewService svcs) {
			svcs.ShowWorkspace<ContactsViewModel>();
		}

		public RelayCommand<IViewService> ShowDialogCommand { get { return new RelayCommand<IViewService>(ShowDialog); } }
		void ShowDialog(IViewService svcs) {
			svcs.ShowDialog<ContactsViewModel>(600, 400);
		}

		public RelayCommand<IViewService> ShowAlbatrossDockPanelDemoCommand { get { return new RelayCommand<IViewService>(ShowAlbatrossDockPanelDemo); } }
		void ShowAlbatrossDockPanelDemo(IViewService svcs) {
			svcs.ShowWorkspace(new ViewOnlyWorkspaceConstruct<Views.AlbatrossDockPanelDemoView>("AlbatrossDockPanel Demo"));
		}
	}
}
